<template>
    <view class="aboutUs pt-20">
        <Navigation backType="back" title="关于我们" background="#fff" />
        <view class="f ai-c h-112 fs-32 text-color4 list ph-40">
            <view class="mr-32">联系电话</view>
            <view>{{phone?phone:'-'}}</view>
        </view>
        <view class="f ai-c h-112 fs-32 text-color4 list ph-40">
            <view class="mr-32">联系邮箱</view>
            <view>{{mail?mail:'-'}}</view>
        </view>
        <view class="f ai-c h-112 fs-32 text-color4 list ph-40">
            <view class="mr-32">官方网站</view>
            <view>{{url?url:'-'}}</view>
        </view>
    </view>
</template>
<script setup lang="ts">
	
	import { ref } from 'vue';
	import { onLoad } from '@dcloudio/uni-app';
	import { agreement } from '@/services/api/index';
	const phone = ref('');
	const mail = ref('');
	const url = ref('');
	onLoad(() => {
	    getDetail();
	});
	async function getDetail() {
		const { data } = await agreement({ type:1 });
		let data2 = JSON.parse(data.content);
		phone.value=data2.phone
		mail.value=data2.mail
		url.value=data2.url
	}	
	
	
</script>
<style lang="scss" scoped>
.aboutUs {
    background: #f5f5f5;
    min-height: 100vh;
    .list {
        background: #fff;
    }
}
</style>
